package cn.wolfcode.luowowo.service.impl;

import cn.wolfcode.luowowo.domain.Spots;
import cn.wolfcode.luowowo.domain.UserInfo;
import cn.wolfcode.luowowo.repository.SpotsRepository;
import cn.wolfcode.luowowo.repository.UserInfoRepository;
import cn.wolfcode.luowowo.service.ISpotsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
//@Transactional  暂时先别管事务
public class SpotsServiceImpl implements ISpotsService {

    @Autowired
    private SpotsRepository repository;

    @Override
    public List<Spots> list() {
        return repository.findAll();
    }
}
